﻿/***********************************************************************
 * <copyright file="ISortable.cs" company="BSD JSC">
 * -->    Copyright (C) statement. All right reserved
 * </copyright>
 * 
 * Created:   Hoang Bich Son 
 * Email:    sonhb@newman.vn
 * Website:
 * Create Date: Thursday, April 24, 2014
 * Usage: 
 * 
 * RevisionHistory: 
 * Date         Author               Description 
 * 
 * ************************************************************************/

using System.Collections;
using System.Collections.Generic;

namespace DxMvcApplication.Code.HtmlHelpers
{
    /// <summary>
    /// Sortable interface. Defines column and order.
    /// </summary>
    public interface ISortable : IEnumerable
    {
        /// <summary>
        /// The sort column.
        /// </summary>
        string Sort { get; }

        /// <summary>
        /// The sort order.
        /// </summary>
        string Order { get; }
    }

    /// <summary>
    /// Generic form of ISortable interface.
    /// </summary>
    /// <typeparam name="T">Type of object being sorted.</typeparam>
    public interface ISortable<out T> : ISortable, IEnumerable<T>
    {
        // No members..
    }
}